package com.allprs.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.xml.crypto.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * 场景漫游中间表(RoamVolume)实体类
 *
 * @author wjf
 * @since 2021-10-14 10:01:22
 */
public class RoamVolume implements Serializable {
    private static final long serialVersionUID = 854091203457155486L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 场景ID
     */
    @ApiModelProperty(value = "场景ID")
    private Integer volumeId;

    /**
     * 漫游名称
     */
    @ApiModelProperty(value = "漫游名称")
    private String roamName;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updateBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 空间属性
     */
    @ApiModelProperty(value = "空间属性")
    private String matrix;

    /**
     * 速度间隔
     */
    @ApiModelProperty(value = "速度间隔")
    private String speed;

    /**
     * 漫游视角
     */
    @ApiModelProperty(value = "漫游视角")
    private String visual;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVolumeId() {
        return volumeId;
    }

    public void setVolumeId(Integer volumeId) {
        this.volumeId = volumeId;
    }

    @NotBlank(message = "名称不能为空")
    @Size(min = 1, max = 20, message = "名称长度不能超过20个字符")
    public String getRoamName() {
        return roamName;
    }

    public void setRoamName(String roamName) {
        this.roamName = roamName;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getMatrix() {
        return matrix;
    }

    public void setMatrix(String matrix) {
        this.matrix = matrix;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public String getVisual() {
        return visual;
    }

    public void setVisual(String visual) {
        this.visual = visual;
    }
}
